package cn.xyinping.pet.mapper;

import cn.xyinping.basic.mapper.BasicMapper;
import cn.xyinping.pet.domain.Pet;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface PetMapper extends BasicMapper<Pet> {
    void onsale(Map<String, Object> params);

    void offSale(Map<String, Object> params);

    Pet loadByIdDetail(Long id);
    // 宠物上架
    List<Pet> findByIds(@Param("ids") List<Long> ids, @Param("state") Integer state);
    // 宠物上架显示详情
    Pet loadByIdAndState(@Param("id") Long id,@Param("state") int state);


}
